package org.huis.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.huis.common.core.domain.BaseEntity;

import java.time.LocalDateTime;
/**
 * @author huis
 * @date 2024/8/4 17:12
 */
@TableName("tb_sys_user")
@Getter
@Setter
@ToString
public class SysUser extends BaseEntity {
    @TableId(type = IdType.ASSIGN_ID) // 雪花算法生成主键
    private Long userId;
    private String userAccount;
    private String password;
    private String nickName;
    /* 提取成父类，并提前到新的模块，让所有微服务都可以使用
    private Long createBy;
    private LocalDateTime createTime;
    private Long updateBy;
    private LocalDateTime updateTime;
    */
}
